package com.lsq.tucao.express.service;

import com.lsq.tucao.express.bean.po.Picture;
import com.lsq.tucao.express.response.JsonResult;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface PictureService {

    /**
     * @author lsq
     * @description 上传图片
     * @param pictureId 图片id
     * @param pictureFile 图片流
     * @return com.lsq.tucao.express.response.JsonResult
     * @create 2021/4/21 19:09
     */
    JsonResult postPicture(Long pictureId, String title, String content, MultipartFile pictureFile) throws IOException;

    /**
     * @author lsq
     * @description 根据id获取图片
     * @param id
     * @return com.lsq.tucao.express.bean.po.Picture
     * @create 2021/4/21 19:36
     */
    Picture getPictureById(Long id);
    
    /**
     * @author lsq
     * @description 获取所有的图片信息
     * @return com.lsq.tucao.express.response.JsonResult 
     * @create 2021/4/21 20:57
     */
    JsonResult getAllPicture();
    
}
